// https://www.dance365.com/apis/promotion/ads/search/findByPosition?access_token=c494ae44-3adc-48ca-8749-5128a53358d7&position=pc_mainpage
import request from '../utils/reqDance';

// https://www.dance365.com/apis/moment/moments/rec/default?access_token=c494ae44-3adc-48ca-8749-5128a53358d7&column=recommend&page

// https://www.dance365.com/apis/moment/moments/collect/original/integrated?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&pageSize=20&pageNum=0&column=original
export default  {
   // 第一次拿到的数据
   getDefault() {
      return request.get('/moment/moments/rec/default?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&column=recommend&pageSize=20&pageNum=2&localCache=0')
   },
   // 点击加载拿到的数据
   getLoadPage() {
      return request.get('/moment/moments/rec/default?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&column=recommend&pageSize=20&pageNum=3&localCache=60')
   },

   // 作品页综合榜接口
   getPageList() {
      return request.post('/moment/moments/collect/original/integrated?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&pageSize=20&pageNum=5&column=original',{})
   },
   
   // 作品页热练榜接口
   getCompPage() {
      return request.post('/moment/moments/collect/original/integrated?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&pageSize=20&pageNum=6&column=original',{})
   },
   // 作品页新锐榜的接口
   getNewPage() {
      return request.post('/moment/moments/collect/original/integrated?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&pageSize=20&pageNum=7&column=original',{})
   },
      // 作品页最新榜接口
   getLatePage() {
      return request.post('/moment/moments/collect/original/integrated?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&pageSize=20&pageNum=8&column=original',{})
   },
   // 教程页综合榜接口
   getTutorialList() {
      return request.post('/moment/moments/collect/original/integrated?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&pageSize=20&pageNum=9&column=original',{})
   },
   
   // 教程页热练榜接口
   getTutorialPage() {
      return request.post('/moment/moments/collect/original/popTraining?access_token=6f1c5f64-05a8-49bd-a6cd-ade15c26f180&pageSize=20&pageNum=12&column=original',{})
   },
   // 教程页新锐榜的接口
   getNewTutoriale() {
      return request.post('/moment/moments/collect/original/integrated?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&pageSize=20&pageNum=10&column=original',{})
   },
   // 教程页最新榜接口
   getLateTutorial() {
      return request.post('/moment/moments/collect/original/integrated?access_token=11780252-ccee-433e-9ecf-50fe1e4607b2&pageSize=20&pageNum=12&column=original',{})
   },

   // 跳转页面的路由
   getSusList(id,recommend) {
      return request.get(`/moment/moments/${id}?access_token=6f1c5f64-05a8-49bd-a6cd-ade15c26f180&source=${recommend}`)
   },
   //弹框获取数据
   getDiloage() {
      return request.get('/avocation/avocations/rec/user?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4&pageNum=1&pageSize=40')
    },
    //弹框搜索
    getSerach(data){
        return request.get(`/avocation/avocations/search/findByName?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4&name=${data}`)
    }
}
